home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume8 / se / patch1 < prev    next >
Encoding:
Internet Message Format  |  1987-02-02  |  4.7 KB

  1. Subject:  v08i002:  SE patches for 4.2 and USG Unices
  2. Newsgroups: mod.sources
  3. Approved: mirror!rs
  4.  
  5. Submitted by: emoryu1!arnold (Arnold D. Robbins)
  6. Mod.sources: Volume 8, Issue 2
  7. Archive-name: se/Patch1
  8.  
  9. It turns out that the version of se that I sent you had problems on USG
  10. systems and 4.2 systems without windowing.  Here is a patch to the file
  11. term.c.
  12.     --Arnold Robbins
  13. ----------------CUT HERE------------------
  14. #! /bin/sh
  15. # This is a shell archive.  Remove anything before this line,
  16. # then unpack it by saving it in a file and typing "sh file".
  17. # If all goes well, you will see the message "End of shell archive."
  18. # Contents:  term.patch
  19. PATH=/bin:/usr/bin:/usr/ucb; export PATH
  20. echo shar: extracting "'term.patch'" '(3562 characters)'
  21. if test -f 'term.patch' ; then 
  22.   echo shar: will not over-write existing file "'term.patch'"
  23. else
  24. sed 's/^X//' >term.patch <<'@//E*O*F term.patch//'
  25. XRCS file: RCS/term.c,v
  26. Xretrieving revision 1.7
  27. Xdiff -c -r1.7 term.c
  28. X*** /tmp/,RCSt1004590    Tue Feb  3 14:34:36 1987
  29. X--- term.c    Tue Feb  3 14:33:55 1987
  30. X***************
  31. X*** 1,9 ****
  32. X  #ifndef lint
  33. X! static char RCSid[] = "$Header: term.c,v 1.7 86/11/12 11:37:30 arnold Exp $";
  34. X  #endif
  35. X  
  36. X  /*
  37. X   * $Log:    term.c,v $
  38. X   * Revision 1.7  86/11/12  11:37:30  arnold
  39. X   * Fixed winsize() to verify that cols and rows not 0 before assigning
  40. X   * them to Nrows and Ncols.
  41. X--- 1,13 ----
  42. X  #ifndef lint
  43. X! static char RCSid[] = "$Header: term.c,v 1.8 87/02/03 14:32:32 arnold Exp $";
  44. X  #endif
  45. X  
  46. X  /*
  47. X   * $Log:    term.c,v $
  48. X+  * Revision 1.8  87/02/03  14:32:32  arnold
  49. X+  * Changes for non-windowing and USG systems; reorganization had
  50. X+  * caused these to break during the compile.
  51. X+  * 
  52. X   * Revision 1.7  86/11/12  11:37:30  arnold
  53. X   * Fixed winsize() to verify that cols and rows not 0 before assigning
  54. X   * them to Nrows and Ncols.
  55. X***************
  56. X*** 57,63 ****
  57. X  ** Routines that are only if HARD_TERMS is NOT defined. These contain:
  58. X  **    BSD/termlib routines
  59. X  **    System V/terminfo routines
  60. X! **    Routines idenpendant of BSD/System V
  61. X  ** Routines that are only if HARD_TERMS is defined.
  62. X  ** Routines that have regular and conditonal code mixed.
  63. X  */
  64. X--- 61,67 ----
  65. X  ** Routines that are only if HARD_TERMS is NOT defined. These contain:
  66. X  **    BSD/termlib routines
  67. X  **    System V/terminfo routines
  68. X! **    Routines independant of BSD/System V
  69. X  ** Routines that are only if HARD_TERMS is defined.
  70. X  ** Routines that have regular and conditonal code mixed.
  71. X  */
  72. X***************
  73. X*** 151,156 ****
  74. X--- 155,161 ----
  75. X          getdescrip ();        /* get terminal description */
  76. X          Nrows = tgetnum ("li");
  77. X          Ncols = tgetnum ("co");
  78. X+         PC = pcstr ? pcstr[0] : EOS;
  79. X          break;
  80. X  
  81. X      default:
  82. X***************
  83. X*** 175,180 ****
  84. X--- 180,187 ----
  85. X  
  86. X  #include <term.h>    /* should be all we really need */
  87. X  
  88. X+ extern char *tgoto();
  89. X+ 
  90. X  #define AM    auto_right_margin
  91. X  #define TI    enter_ca_mode
  92. X  #define TE    exit_ca_mode
  93. X***************
  94. X*** 184,189 ****
  95. X--- 191,197 ----
  96. X  #define CE    clr_eol
  97. X  #define DL    delete_line
  98. X  #define AL    insert_line
  99. X+ #define CM    cursor_address
  100. X  
  101. X  /* setcaps -- get the capabilities from the terminfo database */
  102. X  
  103. X***************
  104. X*** 229,234 ****
  105. X--- 237,244 ----
  106. X  
  107. X  #include <signal.h>
  108. X  
  109. X+ #if defined(SIGWIND) || defined(SIGWINCH)
  110. X+ 
  111. X  #ifdef SIGWIND            /* UNIX PC */
  112. X  #include <sys/font.h>
  113. X  #include <sys/window.h>
  114. X***************
  115. X*** 268,274 ****
  116. X  
  117. X  winsize ()
  118. X  {
  119. X- #if defined(SIGWIND) || defined(SIGWINCH)
  120. X      static int first = 1;
  121. X      static char savestatus[MAXCOLS];
  122. X      int row, oldstatus = Nrows - 1;
  123. X--- 278,283 ----
  124. X***************
  125. X*** 328,338 ****
  126. X      loadstr (savestatus, Nrows - 1, 0, Ncols);
  127. X      remark ("window size change");
  128. X      tflush ();
  129. X- #endif
  130. X  }
  131. X  
  132. X  #else
  133. X  
  134. X  /* begin terminal dependant routines */
  135. X  
  136. X  /* addspos --- position cursor to (row, col) on ADDS Consul 980 */
  137. X--- 337,355 ----
  138. X      loadstr (savestatus, Nrows - 1, 0, Ncols);
  139. X      remark ("window size change");
  140. X      tflush ();
  141. X  }
  142. X  
  143. X  #else
  144. X  
  145. X+ winsize ()    /* no windowing system, don't do anything */
  146. X+ {
  147. X+     return;
  148. X+ }
  149. X+ 
  150. X+ #endif
  151. X+ 
  152. X+ #else
  153. X+ 
  154. X  /* begin terminal dependant routines */
  155. X  
  156. X  /* addspos --- position cursor to (row, col) on ADDS Consul 980 */
  157. X***************
  158. X*** 2044,2052 ****
  159. X  #else
  160. X      if (setcaps (type) == ERR)
  161. X          error (NO, "se: could not find terminal in system database");
  162. X- 
  163. X- 
  164. X-     PC = pcstr ? pcstr[0] : EOS;
  165. X  
  166. X      if (*tgoto (CM, 0, 0) == 'O')    /* OOPS returned.. */
  167. X          error (NO, "se: terminal does not have cursor motion.");
  168. X--- 2061,2066 ----
  169. X
  170. @//E*O*F term.patch//
  171. if test 3562 -ne "`wc -c <'term.patch'`"; then
  172.     echo shar: error transmitting "'term.patch'" '(should have been 3562 characters)'
  173. fi
  174. fi # end of overwriting check
  175. echo shar: "End of shell archive."
  176. exit 0
  177.